<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2012-1-13
  Time: 16:57:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/inc/taglibs.jsp"%>
<script src="${path}/js/jquery.auto.js" type="text/javascript"></script>
<script type="text/javascript">
	function resHandler(response){
		alertMsg.correct('您的数据提交成功！');
		navTab.reload("${path}/admin/airLineComp","");
		$.pdialog.closeCurrent();
	}
</script>
<c:choose>
	<c:when test="${empty model}">
		<c:set var="action" value="${path }/admin/airLineComp/add"></c:set>
	</c:when>
	<c:otherwise>
		<c:set var="action" value="${path }/admin/airLineComp/update"></c:set>
	</c:otherwise>
</c:choose>
<div class="pageContent" >
	<form method="post" action="${action}" class="pageForm required-validate" onsubmit="return iframeCallback(this, resHandler);">
		<div class="pageFormContent" layoutH="56" >
			<table>
				<tr>
					<td>
						<label>航空公司名称：</label>
					</td>
					<td>
						<input name="name" type="text" size="40" class="required" value="${model.name}"/>
					</td>
				</tr>
				
				<tr>
					<td>
						<label>航空公司代码：</label>
					</td>
					<td>
						<input name="code" type="text" size="40" class="" value="${model.code }"/>
					</td>
				</tr>
                <c:if test="${!empty model}">
                 <tr>
                    <td>

                        <input type="hidden" name="id" value="${model.id}">
                    </td>
                </tr>
                </c:if>



			</table>


		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li><div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div></li>
			</ul>
		</div>
	</form>
</div>